<%@ page language="java" contentType="text/html; charset=utf8"
	pageEncoding="utf8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@ taglib  uri="http://java.sun.com/jsp/jstl/functions" prefix="fn"%>
<%
	String path = request.getContextPath();
String basePath = request.getScheme() + "://" + request.getServerName() + ":" + request.getServerPort() + path + "/";
%>

<!DOCTYPE html>
<html>
<head>
<base href="<%=basePath%>" />
<link rel="stylesheet" href="css/bootstrap.css" type="text/css" />
<script type="text/javascript" src="js/bootstrap.js"></script>
<link rel="stylesheet"
	href="css/font-awesome-4.7.0/css/font-awesome.css" type="text/css" />
<meta http-equiv="Content-Type" content="text/html; charset=utf8">
<title>简约书评网</title>
</head>


<body>
	<%@include file="/header.jsp" %>
	<div class="container">


		<div class="media">
			<img src="${book.picture}" class="align-self-start mr-3">
			<div class="media-body">
				<p>
				<h3>
					评分: <span class="badge badge-primary">${book.score}</span>
				</h3>
				</p>
				<h5>内容简介:</h5>
				<p>${book.introduction}</p>
				<h5>作者:<a href="author/detail?authorId=${book.authorId}"> ${book.authorName}</a></h5>
			
			</div>
		</div>
		<br>
		<div>
			<table class="table">
				<tr>
					<th class="text-left" colspan="2">最新评论</th>

				</tr>
				<c:forEach items="${book.newestOpinions}" var="content"
					varStatus="status">
					<tr>

						<td>${content}</td>

					</tr>
				</c:forEach>

			</table>

		</div>
		<div>
			<form>
				
				<div class="form-group">
					<label for="exampleFormControlSelect1">我的评分</label> <select
						class="form-control" id="exampleFormControlSelect1">
						<option>1</option>
						<option>2</option>
						<option>3</option>
						<option>4</option>
						<option>5</option>
						<option>6</option>
						<option>7</option>
						<option>8</option>
						<option>9</option>
						<option>10</option>
					</select>
				</div>
			
				<div class="form-group">
					<label for="exampleFormControlTextarea1">我的评价</label>
					<textarea class="form-control" id="exampleFormControlTextarea1"
						rows="5"></textarea>
				</div>
				<div class="text-center">
					<button type="submit" class="btn btn-primary">提交</button>
				</div>
			</form>
		</div>
	</div>
	<%@ include file="/footer.jsp"%>

</body>
</html>